From: Florian Eckert Date: Fri, 14 Mar 2025 11:38:23 +0000 (+0100) Subject: luci-app-keepalived: clean up translation X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=c2cf0839e6f86b4f2bcf104ca8439d44771ade5a;p=project%2Fluci.git luci-app-keepalived: clean up translation Signed-off-by: Florian Eckert --- diff --git a/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/ipaddress.js b/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/ipaddress.js index d633724e8d..3efeb46206 100644 --- a/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/ipaddress.js +++ b/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/ipaddress.js @@ -63,8 +63,9 @@ return view.extend({ } s = m.section(form.GridSection, 'static_ipaddress', _('Static IP Addresses'), - _('Static Addresses are not moved by vrrpd, they stay on the machine.') + '
' + - _('If your systems already have IPs and they can ping each other, you do not need this section')); + _('Static Addresses are not moved by vrrpd, they stay on the machine.') + ' ' + + _('If your systems already have IPs and they can ping ' + + 'each other, you do not need this section')); s.anonymous = true; s.addremove = true; s.nodescriptions = true; diff --git a/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/peers.js b/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/peers.js index 33bd161394..be90ad92da 100644 --- a/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/peers.js +++ b/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/peers.js @@ -64,7 +64,8 @@ return view.extend({ o.depends({ 'sync' : '1', 'sync_mode' : 'send' }); o = s.option(form.Value, 'sync_dir', _('Sync Directory'), - _('Sender will send files to this location of receiver. Must be same on Master/Backup')); + _('Sender will send files to this location of receiver.') + ' ' + + _('Must be same on Master/Backup')); o.default = '/usr/share/keepalived/rsync'; o.optional = false; o.rmempty = false; diff --git a/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/route.js b/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/route.js index d83c5543a6..2bb560483d 100644 --- a/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/route.js +++ b/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/route.js @@ -69,8 +69,9 @@ return view.extend({ } s = m.section(form.GridSection, 'static_routes', _('Static Routes'), - _('Static Routes are not moved by vrrpd, they stay on the machine.') + '
' + - _('If you already have routes on your machines and your machines can ping each other, you don\'t need this section')); + _('Static Routes are not moved by vrrpd, they stay on the machine.') + '
' + + _('If you already have routes on your machines and ' + + 'your machines can ping each other, you don\'t need this section')); s.anonymous = true; s.addremove = true; s.nodescriptions = true; diff --git a/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/script.js b/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/script.js index c92d48a3c1..16a5572011 100644 --- a/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/script.js +++ b/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/script.js @@ -54,7 +54,9 @@ return view.extend({ var s, o; s = m.section(form.GridSection, 'vrrp_script', _('VRRP Script'), - _('Adds a script to be executed periodically. Its exit code will be recorded for all VRRP instances and sync groups which are monitoring it')); + _('Adds a script to be executed periodically.') + ' ' + + _('Its exit code will be recorded for all VRRP ' + + 'instances and sync groups which are monitoring it')); s.anonymous = true; s.addremove = true; s.nodescriptions = true; diff --git a/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/servers.js b/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/servers.js index 744a0f8aca..55e6403a85 100644 --- a/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/servers.js +++ b/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/servers.js @@ -15,9 +15,11 @@ return view.extend({ var real_servers; s = m.section(form.GridSection, 'virtual_server', _('Virtual Server'), - _('A virtual server is a service configured to listen on a specific virtual IP.') + '
' + - _('A VIP address migrates from one LVS router to the other during a failover,') + - _('thus maintaining a presence at that IP address')); + _('A virtual server is a service configured to listen ' + + 'on a specific virtual IP.') + '
' + + _('A VIP address migrates from one LVS router to the ' + + 'other during a failover, thus maintaining a presence ' + + 'at that IP address')); s.anonymous = true; s.addremove = true; s.nodescriptions = true; diff --git a/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/track_interface.js b/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/track_interface.js index 5330fb1451..ac19dc55be 100644 --- a/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/track_interface.js +++ b/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/track_interface.js @@ -26,8 +26,10 @@ return view.extend({ o.optional = false; o = s.option(form.Value, 'weight', _('Weight'), - _('When a weight is specified, instead of setting the vrrp_instance to the FAULT state in case of failure, ') + - _('its priority will be increased or decreased by the weight when the interface is up or down')); + _('When a weight is specified, instead of setting the' + + 'vrrp_instance to the FAULT state in case of failure, ' + + 'its priority will be increased or decreased by the ' + + 'weight when the interface is up or down')); o.optional = false; o.datatype = 'uinteger'; diff --git a/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/vrrp_instance.js b/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/vrrp_instance.js index 789f619525..afadeaac77 100644 --- a/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/vrrp_instance.js +++ b/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/vrrp_instance.js @@ -21,8 +21,9 @@ return view.extend({ o.optional = false; o = s.taboption('general', form.ListValue, 'state', _('State'), - _('Initial State. As soon as the other machine(s) come up,') + - _('an election will be held and the machine with the highest "priority" will become MASTER.')); + _('Initial State.') + ' ' + + _('As soon as the other machine(s) come up, an election will be held.') + ' ' + + _('The machine with the highest "priority" will become MASTER.')); o.value('MASTER', _('Master')); o.value('BACKUP', _('Backup')); o.optional = false; @@ -61,8 +62,7 @@ return view.extend({ o.value('60'); o = s.taboption('general', form.Flag, 'nopreempt', _('Disable Preempt'), - _('Allows the lower priority machine to maintain the master role,') + - _('even when a higher priority machine comes back online.') + ' ' + + _('Allows the lower priority machine to maintain the master role, even when a higher priority machine comes back online.') + ' ' + _('For this to work, the initial state of this entry must be BACKUP.')); o.optional = true; o.default = false; @@ -182,7 +182,7 @@ return view.extend({ o.modalonly = true; o = s.taboption('advanced', form.Flag, 'vmac_xmit_base', _('Use VMAC Base'), - _('Send/Recv VRRP messages from base interface instead of VMAC interfac')); + _('Send/Recv VRRP messages from base interface instead of VMAC interface')); o.default = false; o.optional = true; o.modalonly = true; @@ -244,7 +244,8 @@ return view.extend({ scripts = uci.sections('keepalived', 'track_script'); o = s.taboption('tracking', form.DynamicList, 'virtual_ipaddress_excluded', _('Exclude Virtual IP Address'), - _('VRRP IP excluded from VRRP. For cases with large numbers (eg 200) of IPs on the same interface.') + ' ' + + _('VRRP IP excluded from VRRP.') + ' ' + + _('For cases with large numbers (eg 200) of IPs on the same interface.') + ' ' + _('To decrease the number of packets sent in adverts, you can exclude most IPs from adverts.')); o.modalonly = true; if (ipaddress != '') { diff --git a/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/vrrp_sync_group.js b/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/vrrp_sync_group.js index 0636ad5402..648cb7109b 100644 --- a/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/vrrp_sync_group.js +++ b/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/vrrp_sync_group.js @@ -23,9 +23,8 @@ return view.extend({ m = new form.Map('keepalived'); s = m.section(form.GridSection, 'vrrp_sync_group', _('VRRP synchronization group'), - _('VRRP Sync Group is an extension to VRRP protocol.') + '
' + - _('The main goal is to define a bundle of VRRP instance to get synchronized together') + '
' + - _('so that transition of one instance will be reflected to others group members')); + _('VRRP Sync Group is an extension to VRRP protocol.') + ' ' + + _('The main goal is to define a bundle of VRRP instance to get synchronized together so that transition of one instance will be reflected to others group members')); s.anonymous = true; s.addremove = true; s.nodescriptions = true;